/* Base styles */
html {
  font-family:
    Inter var,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
}

/* Components */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: white;
  background-color: #2563eb;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-primary:focus {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #3b82f6;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  color: #374151;
  background-color: white;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

.btn-secondary:focus {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #3b82f6;
}

.input-primary {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-primary:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #3b82f6;
}

.card {
  background-color: white;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.card-header {
  padding: 20px 16px;
}

.card-body {
  padding: 20px 16px;
}

.card-footer {
  padding: 16px;
}

@media (min-width: 640px) {
  .card-header {
    padding: 20px 24px;
  }

  .card-body {
    padding: 24px;
  }

  .card-footer {
    padding: 16px 24px;
  }
}

/* 自定义滚动条样式 */
.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}
